<template>
  <div class="recommand">
    <div class="title">
      周末去哪儿
    </div>
    <div class="content border-bottom" v-for="item in recommandList" :key="item.id">
      <div class="img-wrapper">
        <img :src="item.imgUrl" alt="">
      </div>
      <div class="info-wrapper">
        <p class="info-title">{{item.title}}</p>
        <p>{{item.desc}}</p>
      </div>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'HomeWeekend',
    data(){
      return {
        recommandList: [
          {
            id: '001',
            imgUrl: 'http://img1.qunarzz.com/sight/source/1811/7e/476589267ebb41.jpg_r_640x214_bf599709.jpg',
            title: '京城欢乐亲子游',
            desc: '在帝都过周末,不仅仅是城中游'
          },
           {
            id: '002',
            imgUrl: 'http://img1.qunarzz.com/sight/source/1811/7e/476589267ebb41.jpg_r_640x214_bf599709.jpg',
            title: '大连圣亚海洋世界',
            desc: '世界五大宫之首'
          }
        ]
      }
    }
  }
</script>
<style lang="stylus" scoped>
.recommand {
  .title{
    line-height .8rem
    background-color #eee
    padding-left .1rem
    font-weight bold
  }
  .content{
    .img-wrapper{
      box-sizing border-box
      height 0
      padding-bottom 37%
      img {
        width 100%
      }
    }
    .info-wrapper{
      padding .1rem
      .info-title{
        font-weight bold
        line-height .4rem 
        }
    }
  }
}
</style>
